package com.demo.burt.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.burt.dataobject.TestUser;
import com.demo.burt.service.TestUserService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 * 用户前端控制器
 * </p>
 *
 * @author luowei1
 * @since 2018-12-12
 */
@Slf4j
@RestController
@RequestMapping("/user")
@Api(tags = "用户接口")
public class TestUserController {

    @Autowired
    private TestUserService testUserService;

    @GetMapping(value = "/get-all-user")
    @ApiOperation(value = "获取所有用户信息")
    public List<TestUser> getAllUser() {
        return testUserService.getAllUser();
    }

}
